<template>
  <div>
    <h1 class="font-bold">nuxt 3.0! {{ appStore.count }}</h1>
    <NuxtLink to="home">home页面</NuxtLink>
    <el-button type="primary" @click="addCount">加1</el-button>
  </div>
</template>

<script setup lang="ts">
import { useAppStore } from '~/store/modules/appStore';

const appStore = useAppStore();
const addCount = () => {
  appStore.setCount(appStore.count + 1);
};
setTimeout(() => {
  ElMessage.error('我操');
  ElNotification.warning('卧槽i');
}, 3000);
</script>

<style scoped></style>
